package com.changgou.goods.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Author: JoinCao
 * @CreateDate: 2020-03-13
 */
@Table(name = "tb_brand")//声明实体类Brand对应的表
@ApiModel("品牌实体类")
public class Brand implements Serializable {//实现Serializable接口将实体类序列化不然会出错
    @Id//声明实体类id是主键
    @ApiModelProperty(hidden = true)//在接口文档隐藏id,不向前端人员展现
    private Integer id;//品牌id
    @ApiModelProperty("品牌名称")
    private String name;//品牌名称
    @ApiModelProperty("品牌图片地址")
    private String image;//品牌图片地址
    @ApiModelProperty("品牌的首字母")
    private String letter;//品牌的首字母
    @ApiModelProperty("排序")
    private Integer seq;//排序

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getLetter() {
        return letter;
    }

    public void setLetter(String letter) {
        this.letter = letter;
    }

    public Integer getSeq() {
        return seq;
    }

    public void setSeq(Integer seq) {
        this.seq = seq;
    }
}
